package cz.cvut.fel.gfupan.gui;

//singleton
public class Session {

    private static Session instance = null;
    private boolean changed = false;
    public Window window;
    public String date;

    private Session() {
    }

    public static Session getInstance() {
        if (instance == null) {
            instance = new Session();
        }
        return instance;
    }

    //creates new empty measure
    public void newMeasure() {
        changed = false;
        window.clearWindow();
    }

    //loads demo measure
    public void demoMeasure() {
        changed = false;
        window.clearWindow();
    }

    public void setFdata(int i, int data) {
    }
    
    public boolean isChanged() {
        return changed;
    }
    
    //sets some text field's value has changed
    public void hasChanged() {
        changed = true;
    }
    
    public void notChanged() {
        changed = false;
    }
   
}
